<?php
require('flight/Flight.php');

Flight::route('/api/*', function() {
	// TODO: Authentication
	// TODO: JSON headers
	return true;
});

Flight::route('PUT|POST|DELETE /api/*', function() {
	// TODO: XSRF Protection
	return true;
});

Flight::route('/', function() {
	include('home-page.html');
});

Flight::route('/apply|enroll', function() {
	// TODO: Require signin
	// TODO: XSRF Cookie
	include('application.html');
});

Flight::route('/manage', function() {
	// TODO: Require admin signin
	// TODO: XSRF Cookie
	include('manager.html');
});

Flight::start();
